let initializationData = function () {
    //员工数据  (staff)
    //id(id) 账号/工号(jobNumber) 密码(password) 员工姓名(userName) 性别(sex)	生日(Birthdate)	联系方式(tel) 头像(headPortrait) 权限等级(AccessLevel)	职位(jobTitle)
    let staff = [
        {
            id: 1, jobNumber: 10001, password: '12345', userName: '张一', sex: '男', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/老板.webp', AccessLevel: 0, jobTitle: '管理员'
        },
        {
            id: 2, jobNumber: 10002, password: '12345', userName: '张二', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 3, jobNumber: 10003, password: '12345', userName: '张三', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 4, jobNumber: 10004, password: '12345', userName: '张四', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 5, jobNumber: 10005, password: '12345', userName: '张五', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 6, jobNumber: 10006, password: '12345', userName: '张六', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 7, jobNumber: 10007, password: '12345', userName: '张七', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 8, jobNumber: 10008, password: '12345', userName: '张八', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 9, jobNumber: 10009, password: '12345', userName: '张九', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 10, jobNumber: 10010, password: '12345', userName: '张十', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 11, jobNumber: 10011, password: '12345', userName: '李一', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 12, jobNumber: 10012, password: '12345', userName: '李二', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 13, jobNumber: 10013, password: '12345', userName: '李三', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
        },
        {
            id: 14, jobNumber: 10014, password: '12345', userName: '李四', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 15, jobNumber: 10015, password: '12345', userName: '李五', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 17, jobNumber: 10017, password: '12345', userName: '李六', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 18, jobNumber: 10018, password: '12345', userName: '李七', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 19, jobNumber: 10019, password: '12345', userName: '李八', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 20, jobNumber: 10020, password: '12345', userName: '李九', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 21, jobNumber: 10021, password: '12345', userName: '李十', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },
        {
            id: 22, jobNumber: 10022, password: '12345', userName: '李十一', sex: '女', Birthdate: '1990/12/12',
            tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
        },

    ];

    //房间数据 (room)								
    // id (id)	房间号(roomNumber)	房间规格(RoomSize)	价格(price)	预览图片(preview)	房间状态（roomState) 备注(remarks)
    let room = [
        {
            id: 'f1', roomNumber: '101', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f2', roomNumber: '102', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f3', roomNumber: '103', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f4', roomNumber: '104', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f5', roomNumber: '105', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f6', roomNumber: '106', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
        },
        {
            id: 'f7', roomNumber: '107', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
        },
        {
            id: 'f8', roomNumber: '108', RoomSize: '大', price: '300',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
        },
        { id: 'f9', roomNumber: '109', RoomSize: '大', price: '300', preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '' },
        { id: 'f10', roomNumber: '110', RoomSize: '大', price: '300', preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '' },

        {
            id: 'f11', roomNumber: '201', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f12', roomNumber: '202', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f13', roomNumber: '203', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f14', roomNumber: '204', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f15', roomNumber: '205', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
        },
        {
            id: 'f16', roomNumber: '206', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
        },
        {
            id: 'f17', roomNumber: '207', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
        },
        {
            id: 'f18', roomNumber: '208', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
        },
        {
            id: 'f19', roomNumber: '209', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: ''
        },
        {
            id: 'f20', roomNumber: '210', RoomSize: '中', price: '200',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: ''
        },

        {
            id: 'f21', roomNumber: '301', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
        },
        {
            id: 'f22', roomNumber: '302', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
        },
        {
            id: 'f23', roomNumber: '303', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
        },
        {
            id: 'f24', roomNumber: '304', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
        },
        {
            id: 'f25', roomNumber: '305', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f26', roomNumber: '306', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
        },
        {
            id: 'f27', roomNumber: '307', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: ''
        },
        {
            id: 'f28', roomNumber: '308', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
        },
        {
            id: 'f29', roomNumber: '309', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
        },
        {
            id: 'f30', roomNumber: '310', RoomSize: '小', price: '100',
            preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
        },
    ];

    //入住订单 (checkInOrder)
    // id(id) 订单号(orderNumber) 客房号(roomNumber) 入住时间(checkInTime)	价格(price)	押金(cashPledge) 客人名字(clientName)	订单状态(orderState) 备注(remarks)	操作人(inputter)
    let checkInOrder = [
        {
            id: 'd1', orderNumber: '20220101001', roomNumber: '101', checkInTime: '1990/12/12',outtime:'1990/12/13' ,price: '300',
            cashPledge: '100', clientName: '李一', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd2', orderNumber: '20220101002', roomNumber: '102', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '300',
            cashPledge: '100', clientName: '李二', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd3', orderNumber: '20220101003', roomNumber: '201', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '200',
            cashPledge: '100', clientName: '李三', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd4', orderNumber: '20220101004', roomNumber: '202', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '200',
            cashPledge: '100', clientName: '李四', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd5', orderNumber: '20220101005', roomNumber: '301', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '李五', orderState: '入住中', remarks: '', inputter: '张三'
        },
        {
            id: 'd6', orderNumber: '20220101006', roomNumber: '302', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '李六', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd7', orderNumber: '20220101007', roomNumber: '303', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '李七', orderState: '已完成', remarks: '预定', inputter: '张四'
        },
        {
            id: 'd8', orderNumber: '20220101008', roomNumber: '304', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '李八', orderState: '已取消', remarks: '', inputter: '张二'
        },
        {
            id: 'd9', orderNumber: '20220101001', roomNumber: '103', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '300',
            cashPledge: '100', clientName: '李九', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd10', orderNumber: '20220101002', roomNumber: '104', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '300',
            cashPledge: '100', clientName: '李十', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd11', orderNumber: '20220101003', roomNumber: '203', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '200',
            cashPledge: '100', clientName: '李十一', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd12', orderNumber: '20220101004', roomNumber: '204', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '200',
            cashPledge: '100', clientName: '李十二', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd13', orderNumber: '20220101005', roomNumber: '205', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '200',
            cashPledge: '100', clientName: '李十三', orderState: '入住中', remarks: '', inputter: '张三'
        },
        {
            id: 'd14', orderNumber: '20220101006', roomNumber: '306', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '李十四', orderState: '入住中', remarks: '', inputter: '张二'
        },
        {
            id: 'd15', orderNumber: '20220101007', roomNumber: '105', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '300',
            cashPledge: '100', clientName: '王一', orderState: '已完成', remarks: '预定', inputter: '张四'
        },
        {
            id: 'd16', orderNumber: '20220101007', roomNumber: '106', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '300',
            cashPledge: '100', clientName: '王二', orderState: '已完成', remarks: '预定', inputter: '张四'
        },
        {
            id: 'd17', orderNumber: '20220101007', roomNumber: '107', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '300',
            cashPledge: '100', clientName: '王三', orderState: '已完成', remarks: '预定', inputter: '张四'
        },
        {
            id: 'd18', orderNumber: '20220101008', roomNumber: '206', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '200',
            cashPledge: '100', clientName: '王四', orderState: '已取消', remarks: '', inputter: '张二'
        },
        {
            id: 'd19', orderNumber: '20220101008', roomNumber: '307', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '王五', orderState: '已取消', remarks: '', inputter: '张二'
        },
        {
            id: 'd20', orderNumber: '20220101008', roomNumber: '308', checkInTime: '1990/12/12',outtime:'1990/12/13' , price: '100',
            cashPledge: '100', clientName: '王六', orderState: '已取消', remarks: '', inputter: '张二'
        },
    ];


    //预定订单(reserveOrder)										
    //id(id) 订单号(orderNumber) 客房号(roomNumber) 预定时间(reserveTimr) 入住时间(checkInTime) 价格(price) 预定押金(cashPledge) 客人名字(clientName) 联系电话(tel)	订单状态(orderState) 备注(remarks)	操作人(inputter)    
    let reserveOrder = [
        { id: 'd1', orderNumber: '20220101001', roomNumber: '101', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '300', cashPledge: '100', clientName: '赵先生', tel: '135XXXX', orderState: '预定中', inputter: '张四' },
        { id: 'd2', orderNumber: '20220101002', roomNumber: '102', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '200', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '预定中', inputter: '张四' },
        { id: 'd3', orderNumber: '20220101003', roomNumber: '302', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '预定中', inputter: '张四' },
        { id: 'd4', orderNumber: '20220101004', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已完成', inputter: '张四' },
        { id: 'd5', orderNumber: '20220101005', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd6', orderNumber: '20220101006', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd7', orderNumber: '20220101007', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd8', orderNumber: '20220101008', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd9', orderNumber: '20220101009', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd10', orderNumber: '20220101010', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd11', orderNumber: '20220101011', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd12', orderNumber: '20220101012', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd13', orderNumber: '20220101013', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd14', orderNumber: '20220101014', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd15', orderNumber: '20220101015', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd16', orderNumber: '20220101016', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd17', orderNumber: '20220101017', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd18', orderNumber: '20220101018', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd19', orderNumber: '20220101019', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd20', orderNumber: '20220101020', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd21', orderNumber: '20220101021', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd22', orderNumber: '20220101022', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd23', orderNumber: '20220101023', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd24', orderNumber: '20220101024', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd25', orderNumber: '20220101025', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd26', orderNumber: '20220101026', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd27', orderNumber: '20220101027', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd28', orderNumber: '20220101028', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd29', orderNumber: '20220101029', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
        { id: 'd30', orderNumber: '20220101030', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13', leaveTime:'1990/12/13',price: '100', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '已失效', inputter: '张四' },
    ];

    //房客数据(client)							
    // id(id)	客人名字(clientName) 性别(sex)	手机号(tel)	身份证(idNo) 房间号(roomNumber)	备注(remarks)		
    let client = [
        { id: 'c1', clientName: '李一', sex: '男', tel: '181xxxx', idNo: '513721', roomNumber: '101', remarks: '' },
        { id: 'c2', clientName: '李二', sex: '男', tel: '181xxxx', idNo: '513722', roomNumber: '102', remarks: '' },
        { id: 'c3', clientName: '李三', sex: '男', tel: '181xxxx', idNo: '513723', roomNumber: '201', remarks: '' },
        { id: 'c4', clientName: '李四', sex: '男', tel: '181xxxx', idNo: '513724', roomNumber: '202', remarks: '' },
        { id: 'c5', clientName: '李五', sex: '男', tel: '181xxxx', idNo: '513725', roomNumber: '301', remarks: '' },
        { id: 'c6', clientName: '李六', sex: '男', tel: '181xxxx', idNo: '513726', roomNumber: '302', remarks: '' },
        { id: 'c7', clientName: '王一', sex: '男', tel: '181xxxx', idNo: '513727', roomNumber: '103', remarks: '' },
        { id: 'c8', clientName: '王二', sex: '男', tel: '181xxxx', idNo: '513728', roomNumber: '104', remarks: '' },
        { id: 'c9', clientName: '王三', sex: '男', tel: '181xxxx', idNo: '513729', roomNumber: '203', remarks: '' },
        { id: 'c10', clientName: '王四', sex: '男', tel: '181xxxx', idNo: '513730', roomNumber: '204', remarks: '' },
        { id: 'c11', clientName: '王五', sex: '男', tel: '181xxxx', idNo: '513731', roomNumber: '303', remarks: '' },
        { id: 'c12', clientName: '王六', sex: '男', tel: '181xxxx', idNo: '513732', roomNumber: '304', remarks: '' },
    ];

    // / 公告数据
    //    id(id)   tiele 标题    content   内容  date 时间  nage  发布人  
    let dashuju = [
        { id: 1, tiele: '疫情防控', content: '注意疫情防控,进出检查健康吗', date: '2022-04-11', nage: 1 },
        { id: 2, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 3, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 4, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 5, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 6, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 7, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 8, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 9, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗222', date: '2022-04-12', nage: 2 },
        { id: 10, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗2223', date: '2022-04-12', nage: 2 },
        { id: 11, tiele: '疫情防控22', content: '注意疫情防控,进出检查健康吗2223', date: '2022-04-12', nage: 2 }

    ];

    let OrderCount = 0   //每天新增的订单数

    //初始化数据
    saveData('staff', staff);
    saveData('room', room);
    saveData('checkInOrder', checkInOrder);
    saveData('reserveOrder', reserveOrder);
    saveData('client', client);
    saveData('dashuju', dashuju);
    saveData('OrderCount',OrderCount)
}



//只初始化一次 如果已经初始化就不再次初始化了
if (getData('staff') == null) {
    initializationData()
    console.log('我初始化了');
} else {
    console.log('已有数据不再次初始化');
}
//清除 闭包
initializationData = null
// let initializationData = function () {
//     //员工数据  (staff)
//     //id(id) 账号/工号(jobNumber) 密码(password) 员工姓名(userName) 性别(sex)	生日(Birthdate)	联系方式(tel) 头像(headPortrait) 权限等级(AccessLevel)	职位(jobTitle)
//     let staff = [
//         {
//             id: 1, jobNumber: 10001, password: '12345', userName: '张一', sex: '男', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/老板.webp', AccessLevel: 0, jobTitle: '管理员'
//         },
//         {
//             id: 2, jobNumber: 10002, password: '12345', userName: '张二', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 3, jobNumber: 10003, password: '12345', userName: '张三', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 4, jobNumber: 10004, password: '12345', userName: '张四', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 5, jobNumber: 10005, password: '12345', userName: '张五', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 6, jobNumber: 10006, password: '12345', userName: '张六', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 7, jobNumber: 10007, password: '12345', userName: '张七', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 8, jobNumber: 10008, password: '12345', userName: '张八', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 9, jobNumber: 10009, password: '12345', userName: '张九', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 10, jobNumber: 10010, password: '12345', userName: '张十', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 11, jobNumber: 10011, password: '12345', userName: '李一', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 12, jobNumber: 10012, password: '12345', userName: '李二', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 13, jobNumber: 10013, password: '12345', userName: '李三', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/员工1.webp', AccessLevel: 1, jobTitle: '前台'
//         },
//         {
//             id: 14, jobNumber: 10014, password: '12345', userName: '李四', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 15, jobNumber: 10015, password: '12345', userName: '李五', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 17, jobNumber: 10017, password: '12345', userName: '李六', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 18, jobNumber: 10018, password: '12345', userName: '李七', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 19, jobNumber: 10019, password: '12345', userName: '李八', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 20, jobNumber: 10020, password: '12345', userName: '李九', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 21, jobNumber: 10021, password: '12345', userName: '李十', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },
//         {
//             id: 22, jobNumber: 10022, password: '12345', userName: '李十一', sex: '女', Birthdate: '1990/12/12',
//             tel: '133xxxxx', headPortrait: '../images/后勤.webp', AccessLevel: 2, jobTitle: '后勤'
//         },

//     ];

//     //房间数据 (room)								
//     // id (id)	房间号(roomNumber)	房间规格(RoomSize)	价格(price)	预览图片(preview)	房间状态(roomState) 备注(remarks)
//     let room = [
//         {
//             id: 'f1', roomNumber: '101', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f2', roomNumber: '102', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f3', roomNumber: '103', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f4', roomNumber: '104', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f5', roomNumber: '105', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f6', roomNumber: '106', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
//         },
//         {
//             id: 'f7', roomNumber: '107', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
//         },
//         {
//             id: 'f8', roomNumber: '108', RoomSize: '大', price: '300',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
//         },
//         { id: 'f9', roomNumber: '109', RoomSize: '大', price: '300', preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '' },
//         { id: 'f10', roomNumber: '110', RoomSize: '大', price: '300', preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '' },

//         {
//             id: 'f11', roomNumber: '201', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f12', roomNumber: '202', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f13', roomNumber: '203', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f14', roomNumber: '204', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f15', roomNumber: '205', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
//         },
//         {
//             id: 'f16', roomNumber: '206', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
//         },
//         {
//             id: 'f17', roomNumber: '207', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
//         },
//         {
//             id: 'f18', roomNumber: '208', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
//         },
//         {
//             id: 'f19', roomNumber: '209', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: ''
//         },
//         {
//             id: 'f20', roomNumber: '210', RoomSize: '中', price: '200',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: ''
//         },

//         {
//             id: 'f21', roomNumber: '301', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
//         },
//         {
//             id: 'f22', roomNumber: '302', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
//         },
//         {
//             id: 'f23', roomNumber: '303', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
//         },
//         {
//             id: 'f24', roomNumber: '304', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待入住', remarks: '已预定'
//         },
//         {
//             id: 'f25', roomNumber: '305', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f26', roomNumber: '306', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: ''
//         },
//         {
//             id: 'f27', roomNumber: '307', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: ''
//         },
//         {
//             id: 'f28', roomNumber: '308', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '已入住', remarks: '已预定'
//         },
//         {
//             id: 'f29', roomNumber: '309', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
//         },
//         {
//             id: 'f30', roomNumber: '310', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
//         },
//         {
//             id: 'f31', roomNumber: '310', RoomSize: '小', price: '100',
//             preview: ['../images/房间1.webp', '../images/房间2.webp', '../images/房间3.webp'], roomState: '待清洁', remarks: '已预定'
//         },
//     ];

//     //入住订单 (checkInOrder)
//     // id(id) 订单号(orderNumber) 客房号(roomNumber) 入住时间(checkInTime)	价格(price)	押金(cashPledge) 客人名字(clientName)	订单状态(orderState) 备注(remarks)	操作人(inputter)
//     let checkInOrder = [
//         {
//             id: 'd1', orderNumber: '20220101001', roomNumber: '101', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '李一', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd2', orderNumber: '20220101002', roomNumber: '102', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '李二', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd3', orderNumber: '20220101003', roomNumber: '201', checkInTime: '1990/12/12', price: '200',
//             cashPledge: '100', clientName: '李三', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd4', orderNumber: '20220101004', roomNumber: '202', checkInTime: '1990/12/12', price: '200',
//             cashPledge: '100', clientName: '李四', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd5', orderNumber: '20220101005', roomNumber: '301', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '李五', orderState: '入住中', remarks: '', inputter: '张三'
//         },
//         {
//             id: 'd6', orderNumber: '20220101006', roomNumber: '302', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '李六', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd7', orderNumber: '20220101007', roomNumber: '303', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '李七', orderState: '已完成', remarks: '预定', inputter: '张四'
//         },
//         {
//             id: 'd8', orderNumber: '20220101008', roomNumber: '304', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '李八', orderState: '已取消', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd9', orderNumber: '20220101001', roomNumber: '103', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '李九', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd10', orderNumber: '20220101002', roomNumber: '104', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '李十', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd11', orderNumber: '20220101003', roomNumber: '203', checkInTime: '1990/12/12', price: '200',
//             cashPledge: '100', clientName: '李十一', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd12', orderNumber: '20220101004', roomNumber: '204', checkInTime: '1990/12/12', price: '200',
//             cashPledge: '100', clientName: '李十二', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd13', orderNumber: '20220101005', roomNumber: '205', checkInTime: '1990/12/12', price: '200',
//             cashPledge: '100', clientName: '李十三', orderState: '入住中', remarks: '', inputter: '张三'
//         },
//         {
//             id: 'd14', orderNumber: '20220101006', roomNumber: '306', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '李十四', orderState: '入住中', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd15', orderNumber: '20220101007', roomNumber: '105', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '王一', orderState: '已完成', remarks: '预定', inputter: '张四'
//         },
//         {
//             id: 'd16', orderNumber: '20220101007', roomNumber: '106', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '王二', orderState: '已完成', remarks: '预定', inputter: '张四'
//         },
//         {
//             id: 'd17', orderNumber: '20220101007', roomNumber: '107', checkInTime: '1990/12/12', price: '300',
//             cashPledge: '100', clientName: '王三', orderState: '已完成', remarks: '预定', inputter: '张四'
//         },
//         {
//             id: 'd18', orderNumber: '20220101008', roomNumber: '206', checkInTime: '1990/12/12', price: '200',
//             cashPledge: '100', clientName: '王四', orderState: '已取消', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd19', orderNumber: '20220101008', roomNumber: '307', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '王五', orderState: '已取消', remarks: '', inputter: '张二'
//         },
//         {
//             id: 'd20', orderNumber: '20220101008', roomNumber: '308', checkInTime: '1990/12/12', price: '100',
//             cashPledge: '100', clientName: '王六', orderState: '已取消', remarks: '', inputter: '张二'
//         },
//     ];

//     //预定订单(reserveOrder)										
//     //id(id) 订单号(orderNumber) 客房号(roomNumber) 预定时间(reserveTimr) 入住时间(checkInTime) 价格(price) 预定押金(cashPledge) 客人名字(clientName) 联系电话(tel)	订单状态(orderState) 备注(remarks)	操作人(inputter)    
//     let reserveOrder = [
//         {
//             id: 'd1', orderNumber: '20220101001', roomNumber: '101', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '300', cashPledge: '100', clientName: '王先生', tel: '135XXXX', orderState: '预定中', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd2', orderNumber: '20220101002', roomNumber: '102', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '300', cashPledge: '100', clientName: '张先生', tel: '135XXXX', orderState: '预定中', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd3', orderNumber: '20220101003', roomNumber: '302', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '100', cashPledge: '100', clientName: '赵先生', tel: '135XXXX', orderState: '预定中', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd4', orderNumber: '20220101004', roomNumber: '303', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '100', cashPledge: '100', clientName: '李先生', tel: '135XXXX', orderState: '已完成', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd5', orderNumber: '20220101005', roomNumber: '304', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '100', cashPledge: '100', clientName: '何先生', tel: '135XXXX', orderState: '已失效', remarks: '超时', inputter: '张四'
//         },
//         {
//             id: 'd6', orderNumber: '20220101001', roomNumber: '201', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '200', cashPledge: '100', clientName: '李小姐', tel: '135XXXX', orderState: '预定中', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd7', orderNumber: '20220101002', roomNumber: '202', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '200', cashPledge: '100', clientName: '王小姐', tel: '135XXXX', orderState: '预定中', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd8', orderNumber: '20220101003', roomNumber: '203', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '200', cashPledge: '100', clientName: '张小姐', tel: '135XXXX', orderState: '预定中', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd9', orderNumber: '20220101004', roomNumber: '204', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '200', cashPledge: '100', clientName: '赵小姐', tel: '135XXXX', orderState: '已完成', remarks: '', inputter: '张四'
//         },
//         {
//             id: 'd10', orderNumber: '20220101005', roomNumber: '305', reserveTimr: '1990/12/12', checkInTime: '1990/12/13',
//             price: '100', cashPledge: '100', clientName: '何小姐', tel: '135XXXX', orderState: '已失效', remarks: '超时', inputter: '张四'
//         },
//     ];

//     //房客数据(client)							
//     // id(id)	客人名字(clientName) 性别(sex)	手机号(tel)	身份证(idNo) 房间号(roomNumber)	备注(remarks)		
//     let client = [
//         { id: 'c1', clientName: '李一', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '101', remarks: '' },
//         { id: 'c2', clientName: '李二', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '102', remarks: '' },
//         { id: 'c3', clientName: '李三', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '201', remarks: '' },
//         { id: 'c4', clientName: '李四', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '202', remarks: '' },
//         { id: 'c5', clientName: '李五', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '301', remarks: '' },
//         { id: 'c6', clientName: '李六', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '302', remarks: '' },
//         { id: 'c7', clientName: '王一', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '103', remarks: '' },
//         { id: 'c8', clientName: '王二', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '104', remarks: '' },
//         { id: 'c9', clientName: '王三', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '203', remarks: '' },
//         { id: 'c10', clientName: '王四', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '204', remarks: '' },
//         { id: 'c11', clientName: '王五', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '303', remarks: '' },
//         { id: 'c12', clientName: '王六', sex: '男', tel: '181xxxx', idNo: '51001999xxx', roomNumber: '304', remarks: '' },
//     ];

//     //初始化数据
//     saveData('staff', staff);
//     saveData('room', room);
//     saveData('checkInOrder', checkInOrder);
//     saveData('reserveOrder', reserveOrder);
//     saveData('client', client);
// }
// //只初始化一次 如果已经初始化就不再次初始化了
// if (getData('staff') == null) {
//     initializationData()
//     console.log('我初始化了');
// }else{
//     console.log('已有数据不再次初始化');
// }

// //清除 闭包
// initializationData = null